<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>拍卖预展列表</title>
<link href="../style/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.main {text-align: left;width: 960px;margin: 0 auto;border:1px solid #ccc;background: #fff}
.header{position:relative;padding: 10px 0px 10px 0px;height: 20px;}
.header span{position:absolute;right: 25px;font-family: "宋体";font-size: 12px;}

.footer{position:relative;height: 20px;clear:both;padding: 0px 0px 10px 0px;}
.footer span{position:absolute;right: 25px;font-family: "宋体";font-size: 12px;}

.row   {clear:both;padding-left: 24px;}

.list{position: relative;float: left;background: url(../images/yzdt.gif) no-repeat;height: 254px;width: 444px;margin-right: 24px;margin-bottom: 10px;}

.cover{float:left;width: 210px;height: 250px;}
.pic{position: relative;width: 185px;height: 225px;background:  no-repeat center center;margin-left: 12px;margin-top: 12px;}
.pic a{display:block;width: 185px;height: 225px;}
.currentState{position: absolute;top: -5px;left:-15px}

.detailOfAuction{float:left;height: 250px;}
</style>

</head>

<body> 

<%@include file="/commons/head.jsp"%>

<form action="${ctx }/front/auctionAction!list.do" method="post" id="auction_form" name="auction_form" style="margin:0px;padding:0px">
 <div class="main">
	<div class="header">
	    <span><jsp:include page="/commons/paging_footer.jsp"/></span>
    </div>
    
   	<c:forEach items="${page.result}" var="result" varStatus="status">
   		 <c:if test="${ status.count mod 2 == 1}"><div class="row"></c:if>
	 	   <div class="list">
				   <div class="cover">
					      <div style="background-image: url('${result.imagepath }');" class="pic">
			                   	<a href="${ctx }/front/auctionAction!showDetail.do?id=${result.id }"></a>
			                   	<div class="currentState">
									<c:if test="${result.currentStateFlag == 1}"><img src="../images/tstb1.png" width="69" height="32"></c:if>
									<c:if test="${result.currentStateFlag == 2}"><img src="../images/tstb10.png" width="69" height="32"></c:if>
									<c:if test="${result.currentStateFlag == 3}"><img src="../images/tstb2.png" width="69" height="32"></c:if>
								</div>
		                  </div>
	               </div>
	               <div class="detailOfAuction">
	               		<table border="0" cellpadding="0" cellspacing="0" height="250">
	               		<tr><td valign="bottom" style="font-family: 宋体;font-size: 12px;line-height: 20px;padding: 5px 5px 15px 7px;">
	           			  <strong>${result.provinceInfo.name }</strong>( <fmt:formatDate value='${result.beginningTime }' pattern='yyyy年MM月dd日 '/> )<br>
					      <strong>
						      <a href="${ctx }/front/auctionAction!showDetail.do?id=${result.id }">
						     		 ${result.name }
						      </a>
					      </strong><br>
					                策拍：${result.planningUnit }<br>
					                拍品：${result.totalCount }件<br>
					                封面：${result.coverName }<br>
					                时间：<fmt:formatDate value='${result.beginningTime }' pattern='yyyy年MM月dd日  HH:mm'/><br>
					                地点：${result.cityInfo.name }${result.address }<br>
					                咨询电话：${result.tel }
					   </td></tr>
					    </table>
				  </div>
				
          </div>
	 	<c:if test="${ status.last or  status.count mod 2 == 0}"></div></c:if>
	</c:forEach>
  
  <div class="footer"><span><jsp:include page="/commons/paging_footer.jsp"/></span></div>
  
</div>
</form>

<%@include file="/commons/foot.jsp" %>

</body>

</html>